<?php
set_time_limit(0);
include __DIR__.'/function.php';
require __DIR__.'/vendor/autoload.php';

use QL\QueryList;

$url = 'https://news.ke.com/bj/baike/0033/';

$html = http_request($url);



//通过 选择器  删选
$datalist = QueryList::Query($html, [
    'img' => ['.lj-lazy','data-original'],      
    'title' => ['.item .text .LOGCLICK', 'text'],
    'desn' => ['.item .text .summary', 'text'],
    'href' => ['.item .text > a', 'href']
])->data;



var_dump($datalist);

